package com.gitee.qdbp.general.common.api.site.service;

import java.util.List;
import com.gitee.qdbp.able.exception.ServiceException;
import com.gitee.qdbp.base.system.model.IAccount;
import com.gitee.qdbp.general.common.api.site.model.content.ContentPublishBean;
import com.gitee.qdbp.general.common.api.site.model.content.ContentPublishUpdate;

/**
 * 内容发布业务接口
 *
 * @author zhh
 * @version 171012
 */
public interface IContentPublishExecutor {

    void create(ContentPublishBean model, IAccount me) throws ServiceException;

    void update(ContentPublishUpdate model, IAccount me) throws ServiceException;

    void delete(String categoryCode, String id, IAccount me) throws ServiceException;

    void delete(String categoryCode, List<String> ids, IAccount me) throws ServiceException;

    void swapIndex(String categoryCode, String oneId, String twoId, IAccount me) throws ServiceException;
}
